﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="Controls_NewsPanel" Codebehind="NewsPanel.ascx.cs" %>

<div class="divNewsHeader">
<h2>Останні новини</h2>
</div>
<div class="divNewsBody">
    <asp:Label ID="lblNews" runat="server" Text="Новини та оголошення"></asp:Label><br />
    <div class="newsList">
        <asp:ListView ID="newsList" runat="server" EnableViewState="false">
            <LayoutTemplate>
                <div runat="server" id="itemPlaceholder"></div>
            </LayoutTemplate>
            <ItemTemplate>
                <div class="news-item">
                <asp:HyperLink ID="newsLink" runat="server" NavigateUrl='<%# "../News.aspx?newsID=" + Eval("NewsID") %>' Text='<%# Eval("PublishingDate", "{0:D}") + " " + Eval("NewsName") %>'></asp:HyperLink><br />
                </div>
            </ItemTemplate>
        </asp:ListView>
    </div>
    <asp:HyperLink ID="linkAll" runat="server" NavigateUrl="~/TestSystem/News.aspx?{0}">...</asp:HyperLink><br />
    <asp:HyperLink ID="linkAllNews" runat="server" Text="Архів новин" NavigateUrl="~/TestSystem/News.aspx"></asp:HyperLink>
</div>             
